#! /bin/bash

BUILD_TYPE=Debug
BUILD_FOLDER=build_$(echo "${BUILD_TYPE}" | tr '[:upper:]' '[:lower:]')

cmake -B ${BUILD_FOLDER} -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DTHIRD_PARTY_MODE="cmake fetch content"

cmake --build ${BUILD_FOLDER}

ctest --test-dir ${BUILD_FOLDER}
